﻿using EFCore.Sharding;
using Microsoft.Extensions.Hosting;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Wixa.IBusiness.Base_Manage;
using Wixa.Models.Base_Manage;
using Wixa.Models.DTO;
using Wixa.Util.DI;
using Wixa.Util.Extensions;
using Wixa.Util.Helper;
using Wixa.Util.Primitives;

namespace Wixa.Business.Base_Manage
{
    public class MenusBusiness : BaseBusiness<Menus>, IMenusBusiness, ITransientDependency
    {
        public MenusBusiness(IDbAccessor db)
            : base(db)
        {
        }

        public List<Menus> GetDataList()
        {
            return Db.GetIQueryable<Menus>().ToList();
        }

    }
}
